﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using SimpleTaskManager.Domain.Entities;

namespace SimpleTaskManager.Domain.Concrete
{
    public class DbInitializer : DropCreateDatabaseIfModelChanges<EFDbContext>
    {
        protected override void Seed(EFDbContext context)
        {
            var User = new User
            {
                Login = "admin", FirstName = "Joe"
            };
            context.Users.Add(User);
            context.SaveChanges();

        }
    }
}
